package domain;

import java.io.Serializable;

import javax.persistence.Transient;

import org.apache.mina.core.session.IoSession;


/**
 * last change:  $Date$
 * by:           $Author$
 * revision:     $Revision$
 *
 */
public class User implements Serializable {

  private static final long serialVersionUID = -8461245277839470709L;

  private Long id;
  
  private String login;
  
  private String password;
  
  private String name;
  
  private int location;
  
  @Transient
  private IoSession ioSession;

  public User() {
  }
  
  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getLogin() {
    return login;
  }

  public void setLogin(String login) {
    this.login = login;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public IoSession getIoSession() {
    return ioSession;
  }

  public void setIoSession(IoSession ioSession) {
    this.ioSession = ioSession;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getLocation() {
    return location;
  }

  public void setLocation(int location) {
    this.location = location;
  }
  
}
